package com.luzhikun.Service.impl;

import com.luzhikun.Service.CityService;
import com.luzhikun.dao.CityDao;
import com.luzhikun.domain.City;
import com.luzhikun.util.SqlSessionUtil;

import java.util.List;

/**
 * @Author Rookie Coder
 * @Description
 * @Date
 **/
public class CityServiceImpl implements CityService {

    private CityDao isd= SqlSessionUtil.getSqlSession().getMapper(CityDao.class);

    @Override
    public City getById(String id) {
        return isd.getById(id);
    }

    @Override
    public Object save(City city) {

        System.out.println("+++++++");
        return isd.save(city);

    }

    @Override
    public void delete(String id) {

        isd.delete(id);

    }

    @Override
    public List<City> selectAll() {
        return isd.selectAll();
    }
}
